package org.example.easybuy.service;

import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import org.example.easybuy.dao.CategoryDao;
import org.example.easybuy.entity.Category;

import java.util.List;
import java.util.Map;

public interface CategoryService {
    PageInfo<Category> getCategoryPageInfo(Map<String,Object> params);
    List<Category> selectByType(int type);
    List<Category> selectListById(int id);
    Category checkCateName(Map<String,Object> params);
    boolean addCategory(Map<String,Object> params);
    Category getUpdateCategory(@Param("id")String id, @Param("type")int type);
    int selectCateCount(int type,int id);
    boolean deleteCate(int id);
    boolean updateCategory(Map<String,Object> map);
    int selectTypeById(int id);
}
